<template>
    <div class="list-item">
      <div class="cover" :title="item.movie_name"><el-image :src="item.img" lazy></el-image></div>
      <div class="name":title="item.movie_name">{{item.title}}</div>
      <div class="role">{{item.to_star}}</div>
    </div>
</template>

<script>
export default {
  name: 'ListItem',
  props: {
    item: {
      src: '',
      movie_name: '',
      role: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.list-item{
  width: 100%;
  height: 100%;
  text-align: center;
  &:hover{
    .el-image{
      transform: scale(1.2);
      transition: all 1s;
    }
    .name{
      color: #00C064;
    }
  }
  .cover{
    width: 100%;
    height: calc(100% - 35px);
    overflow: hidden;
    cursor: pointer;
    .el-image{
      width: 100%;
      height: 100%;
    }
  }
  .name{
    margin-top: 5px;
    color: #333;
    cursor: pointer;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
  .role{
    color: #737373;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
}
</style>
